package controller

import (
	"net/http"
	"traffic/system"
)

func Index(w http.ResponseWriter, r *http.Request) {
	w.Write([]byte("ok"))

	//	c, err := redis.Dial("tcp", "127.0.0.1:6379")
	//	utils.Chkerr(err)
	//	//	v, err1 := c.Do("SET", "namex", "zhang")
	//	v, err1 := redis.String(c.Do("GET", "namex"))
	//	utils.Chkerr(err1)
	//	fmt.Println(v)
}

func Clscache(w http.ResponseWriter, r *http.Request) {
	system.Redis.Do("flushall")
	w.Write([]byte("ok"))
}
